<extend file='resource/admin/system'/>
<block name="content">
    <!-- TAB NAVIGATION -->
    <ul class="nav nav-tabs" role="tablist">
        <li class="active"><a href="#tab1">模块列表</a></li>
        <li><a href="{{u('design')}}" >设计模块</a></li>
    </ul>
    <table class="table table-hover">
    	<thead>
    		<tr>
    			<th width="8%">编号</th>
                <th>模块标识</th>
                <th>模块预览图</th>
                <th>模块中文名称</th>
                <th>模块作者</th>
                <th>操作</th>
    		</tr>
    	</thead>
    	<tbody>
        <foreach from="$module" value="$d">
    		<tr>
    			<td>{{$d['id']}}</td>
    			<td>{{$d['module_name']}}</td>
    			<td>
                    <img src="{{$d['module_thumb']}}"  alt="" style="height:60px ;">
                </td>
                <td>{{$d['module_title']}}</td>
                <td>{{$d['module_author']}}</td>
    			<td>
                    <div class="btn-group btn-group-sm">


                        <a href="javascript:" onclick="del('{{$d['module_name']}}')" class="btn btn-success">卸载</a>
                    </div>
                </td>
    		</tr>
        </foreach>
    	</tbody>
    </table>
<!-- {{$module->link()}}-->
    <script>
        //这边点击  删除对应模块的英文表示就可以了 因为表示 不会有重复的
        function del(module_name) {
//            alert(module_name);

                    util.confirm('请确认删除',function (res) {

                        location.href = "{{u('del')}}&module_name=" + module_name;
                    })
        }

    </script>
</block>
